<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        {{message}}
        <!-- v-bind指令的使用：修改标签的属性值  -->
        <!-- <img src="https://img20.360buyimg.com/pop/s590x470_jfs/t1/122521/13/8313/89013/5f213780Ed7980288/bde5f141a1c76635.jpg.webp"> -->
        <img v-bind:src="imgUrl">
        <!-- 也可以简写省略掉v-bind -->
        <a :href="url">百度一下</a>



    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                 message:'我是你爹!' ,
                 imgUrl:'https://img20.360buyimg.com/pop/s590x470_jfs/t1/122521/13/8313/89013/5f213780Ed7980288/bde5f141a1c76635.jpg.webp',
                 url:'https://www.baidu.com'
            },
            methods: {}
        });
    </script>
</body>

</html>